package com.link.common.packet;

import java.util.Arrays;

public enum ResponseOperate {
    LOGIN(2),
    LOGOUT(4),
    REGISTER(6),//注册

    SEND_VERIFICATION_CODE(8), //发送验证码
    REAL_NAME_AUTHENTICATION(10),
    LOAD_REGION(12),
    LOAD_CHANNEL(14),
    CHANNEL_LOGIN(16),

    ;
    public final int code;
    ResponseOperate(int code){
          this.code=code;
      }


    public static ResponseOperate of(int code) {
      return   Arrays.stream(values()).filter(it->it.code==code).findFirst().orElse(null);

    }
}
